<!DOCTYPE HTML>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>统战成员学习平台</title>
	<link rel="stylesheet" type="text/css" href="../../css/base.css" />
	<link rel="stylesheet" type="text/css" href="../../css/style.css" />
	<style>
		html,body{
			background-color: #FFF
		}
	</style>
</head>

<body class="white">
	<div id='app' style="display:none" v-show="true">
		<!-- <div class="news_detail">
			<p class="title">{{showTitle}}</p>
			<p class="author">{{detailDate}}<span class="time"></span></p>
			<div class="content" v-html="showContent"></div>
		</div> -->
		<div class="app">
			<div class="app-content zx-content">
				<p class="title">{{showTitle}}</p>
				<div class="content" v-html="showContent" style="overflow-x:auto;-webkit-overflow-scrolling: touch;"></div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/vue.min.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/layer_mobile/layer.js"></script>
	<script type="text/javascript">
		new Vue({
			el: '#app',
			data: {
				newsId: 0,
				showTitle: '',
				author: '',
				detailDate: '',
				showContent: ''
			},
			mounted: function() {
				var $this = this;
				apiready = function() {
					api.parseTapmode();
					$this.newsId = api.pageParam.newsId;
					$this.init();
				}
			},
			methods: {
				init: function() {
					var $this = this;
					post('/client/news/newsContent', {
						newsId: $this.newsId
					}, function(ret) {
						if (ret.code == 200) {
							$this.showTitle = ret.data.title;
							$this.detailDate = ret.data.createTime;
							$this.showContent = ret.data.content;
						} else {
							msgUtil.toast({
								msg: ret.message
							});
						}
					});
				}
			}
		});
	</script>
</body>

</html>
